Skip to content

Conversation

@thepabloaguilar
Copy link
Contributor

Issue #151

Description of changes:

In python 3.7 or above people get the error:
AttributeError: module 'multiprocessing' has no attribute 'connection'

To fix this, instead of using mp.connection.Connection to make the Type Hints now we import Connection from multiprocessing.connection:

from multiprocessing.connection import Connection

And to be more meaningful Connection was aliased as MultiprocessingConnection.

In some circumstances a get the same error using Python 3.6.9 on Manjaro, but using the same Python version on Ubuntu works and these changes fix for these cases as well.

Closes #151

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@igorborgest igorborgest self-requested a review March 30, 2020 15:40
@igorborgest igorborgest self-assigned this Mar 30, 2020
@igorborgest igorborgest added bug Something isn't working major release Will be addressed in the next major release labels Mar 30, 2020
@igorborgest igorborgest merged commit 67ee051 into aws:master Mar 30, 2020
@igorborgest
Copy link
Contributor

@phakiller awesome! Thank you!

@thepabloaguilar thepabloaguilar deleted the fix-pandas-type-hint branch March 30, 2020 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working major release Will be addressed in the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

awswrangler import error on python:3.7 dockers

2 participants